﻿@page
@using System.Diagnostics
@using OpenPms.Extensions;
@model IndexModel
@{
    ViewData["Title"] = "首页";
}
<div class="weui-grids">
    @*     <a asp-area="M" href="javascript:;" class="weui-grid">
    <div class="weui-grid__icon">
    <img src="~/lib/weui/dist/example/images/icon_tabbar.png" alt="">
    </div>
    <p class="weui-grid__label">Grid</p>
    </a>
    <a asp-area="M" href="javascript:;" class="weui-grid">
    <div class="weui-grid__icon">
    <img src="~/lib/weui/dist/example/images/icon_tabbar.png" alt="">
    </div>
    <p class="weui-grid__label">Grid</p>
    </a>
    *@
    @if (User.IsInRole("管理员"))
    {
        <a asp-area="M" asp-page="/Setup/Index" class="weui-grid">
            <div class="weui-grid__icon">
                <img src="~/lib/weui/dist/example/images/icon_tabbar.png" alt="">
            </div>
            <p class="weui-grid__label">设置</p>
        </a>
    }

    <a asp-area="M" asp-page="/User/UserInfo" class="weui-grid">
        <div class="weui-grid__icon">
            <img src="~/lib/weui/dist/example/images/icon_tabbar.png" alt="">
        </div>
        <p class="weui-grid__label">我的信息</p>
    </a>

</div>

@section scripts
{
    <script>
        $(function () {
            $(".pagetitle").addClass("pagetitlehome");
        });
    </script>
}